//
//  AdView.h
//  mytown007
//
//  Created by Vescky on 13-12-20.
//  Copyright (c) 2013年 vescky. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MyUIScrollView : UIScrollView;
@end

@interface AdView : UIView <UIScrollViewDelegate,UIPageViewControllerDelegate>{
    UIScrollView *adScrollView;
    UIImageView *bgImageView,*labelBgView;
    UIPageControl *adPageController;
    UILabel *labelAdWords;
    NSTimer *adTimer;
}

@property (nonatomic,strong) NSMutableArray *sourceArr;//AdViewData
@property (nonatomic,strong) UIImage *bgImage;//广告背景

@property (nonatomic,strong) UIFont *labelFont;//字体
@property float labelOccupyPercentage;//广告词占高比
@property (nonatomic,strong) UIColor *labelBgColor;//广告词背景色
@property (nonatomic,strong) UIColor *labelTextColor;//广告词背景色
@property (nonatomic,strong) UIImage *labelBgImage;//广告词背景图
@property float labelAlpha;//广告词透明度

@property int currentIndex;//当前index

@property (nonatomic,strong) NSString *actionLink;

- (void)loadAds;

@end
